package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDate;
@TableName("t_record")
public class RecordBean {
    /**编号*/
    @TableId(value = "pk_recordid",type = IdType.AUTO)
    private String recordID;
    /**描述*/
    @TableField("re_recorddes")
    private String recordDes;
    /**报损日期*/
    @TableField("re_recorddate")
    private LocalDate recordDate = LocalDate.now();
    /**解决状态*/
    @TableField("re_recordstatus")
    private String recordStatus = "未解决";
    /**所在房间*/
    @TableField(exist = false)
    private RoomBean recordRoom;
    /**房间id*/
    @TableField("fk_roomid")
    private Integer recordRoomID;

    public RecordBean() {
    }

    public RecordBean(String recordDes, Integer recordRoomID) {
        this.recordDes = recordDes;
        this.recordRoomID = recordRoomID;
    }

    public String getRecordID() {
        return recordID;
    }

    public void setRecordID(String recordID) {
        this.recordID = recordID;
    }

    public String getRecordDes() {
        return recordDes;
    }

    public void setRecordDes(String recordDes) {
        this.recordDes = recordDes;
    }

    public LocalDate getRecordDate() {
        return recordDate;
    }

    public void setRecordDate(LocalDate recordDate) {
        this.recordDate = recordDate;
    }

    public String getRecordStatus() {
        return recordStatus;
    }

    public void setRecordStatus(String recordStatus) {
        this.recordStatus = recordStatus;
    }

    public RoomBean getRecordRoom() {
        return recordRoom;
    }

    public void setRecordRoom(RoomBean recordRoom) {
        this.recordRoom = recordRoom;
    }

    public Integer getRecordRoomID() {
        return recordRoomID;
    }

    public void setRecordRoomID(Integer recordRoomID) {
        this.recordRoomID = recordRoomID;
    }

    @Override
    public String toString() {
        return "\nRecordBean{" +
                "recordID='" + recordID + '\'' +
                ", recordDes='" + recordDes + '\'' +
                ", recordDate=" + recordDate +
                ", recordStatus='" + recordStatus + '\'' +
                ", recordRoom=" + recordRoom +
                ", recordRoomID=" + recordRoomID +
                '}';
    }
}
